class Char:
    name=None
    level=1
    health=100
    def attack(self, enemy):
        print u"%s(%s) attacks %s(%s)"%(self.name, self.health, enemy.name, enemy.health)
        enemy.health-=35*self.level/enemy.level
        self.health-=10/self.level
        enemy.defend(self)
    def defend(self, enemy):
        print u"%s(%s) defends %s(%s)"%(self.name, self.health, enemy.name, enemy.health)
        enemy.health-=2*self.level/enemy.level
        self.health-=7/self.level
    def die(self):
        if self.health<5:
            print "%s dies with %s points of health"%(self.name, self.health)
